package com.qyoung.service.impl;

import com.qyoung.dao.UserDao;
import com.qyoung.dao.impl.UserDaoImpl;
import com.qyoung.pojo.User;
import com.qyoung.service.UserService;

import java.util.List;

public class UserServiceImpl implements UserService {
    UserDao dao = new UserDaoImpl();
    @Override
    public boolean login(String username, String password) {
        return dao.login(username,password);
    }

    @Override
    public List<User> findAll() {
        return dao.findAll();
    }
}
